<!DOCTYPE html>
<html lang="en">

<head>
 <meta charset="UTF-8">
 <meta name="viewport"
  content="width=device-width, initial-scale=1.0, minimum-scale=1,maximum-scale=1,user-scalable=no">
 <meta http-equiv="X-UA-Compatible" content="ie=edge">
 <title data-ch="恐龙探险" data-en="Dinosaur Adventure" class="document_title">恐龙探险</title>
 <script src="js/jquery-3.3.1.min.js"></script>
 <script src="js/common.js"></script>
 <script src="js/rem.js"></script>
 <script src="js/layer.js"></script>
 <script type="text/javascript">
  isLogin();
 </script>
 <link rel="stylesheet" href="css/common.css">
 <link rel="stylesheet" href="css/index.css">
</head>

<body>
 <!--头部-->
 <div class=" jui_top_bar">
  <a class="jui_top_left" href="javascript:history.back(-1)"><img src="icons/back.png"></a>
  <div class="jui_top_middle font_weight" data-ch="鸡肉充值" data-en="meat top up">鸡肉充值</div>
 </div>
 <!-- 头部end -->
 <!-- 内容部分 -->
 <div class="padding_032 jui_main">
  <div class="latout_mask border_radius03 ji_chong_main col_fff">
   
   <div class="details1">
    <!-- <div class="f32 text_center font_weight">10766.00</div>
    <div class="f28 col_fff jirou_chong_list1" data-ch="您可以通过平台向以下的商家充值鸡肉。"
     data-en="You may purchase meat with any meat traders as below">您可以通过平台向以下的商家充值肌肉。</div>
    <div class="f28 col_fff" data-ch="充值至少50以上。" data-en="Minimum top up RM50 and above">充值至少50以上。</div>
    <div class="f28 jirou_chong_list3 col_fff" data-ch="1 鸡肉 = RM 1.00" data-en="1 Chicken meat = RM1.00">
     ${data.config.w_wx}
    </div>
    <div class="f28 col_fff" data-ch="付款后请上传载图,并提供用户ID至商家。" data-en="Once payment has been made, please upload the receipt and provide user ID to the meat
    traders.">付款后请上传载图,并提供用户ID至商家。</div> -->
   </div>
   
   <div class="details2">
    <!-- <div class="ji_chong_bank_box" style="margin-top: 0.7rem;">
     <div class="ji_chong_bank_list border_radius03 flex_col">
      <div class="ji_chong_bank_name f30 col_000 font_weight">Teoh Khai Yee</div>
      <div class="ji_chong_bank_num col_000 font_weight">联系: <span>016666666</span></div>
      <div class="flex_ce">
       <div class="f24 jirou_chong_list5 border_radius05 text_center"
        style="width:2.5rem; margin-bottom:0; background:#2aa242; margin-right: 0.2rem;">WhatsApp</div>
       <div class="f24 jirou_chong_list5 border_radius05 text_center" style="width:2.5rem; margin-bottom:0;">Telegram
       </div>
      </div>
     </div>
    </div> -->
   </div>
   

  </div>
 </div>

 <script>
  $(function(){
   var money = window.location.href.split("=")[1];
   var language_type = localStorage.getItem("language_type");
   var m_wx;
   var m_qq;
   var data1 = {
    uid: localStorage.getItem("u_id"),
    token: localStorage.getItem("token"),
    language_type: language_type
   }
   $.ajax({
    type: 'post',
    url: baseURL + '/index.php?m=index&c=shop_list',
    data: data1,
    success: function success(data) {
     data = JSON.parse(data);
	    is_login(data);
     if (data.code == 1) {
      let details1 = `<div class="details1">
        <div class="f32 text_center font_weight">${money}</div>
        <div class="f28 col_fff jirou_chong_list1" data-ch="您可以通过平台向以下的商家充值鸡肉。"
         data-en="You may purchase meat with any meat traders as below">您可以通过平台向以下的商家充值肌肉。</div>
        <div class="f28 col_fff" data-ch="充值至少50以上。" data-en="Minimum top up RM50 and above">充值至少50以上。</div>
        <div class="f28 jirou_chong_list3 col_fff" data-ch="1 鸡肉 = RM 1.00" data-en="1 Chicken meat = RM1.00">
        </div>
        <div class="f28 col_fff" data-ch="付款后请上传载图,并提供用户ID至商家。" data-en="Once payment has been made, please upload the receipt and provide user ID to the meat traders.">付款后请上传载图,并提供用户ID至商家。</div>
       </div>`
      let details2 = '';
      data.shop.forEach(function(item){
       console.log(item);
       details2 += `<div class="ji_chong_bank_box" style="margin-top: 0.7rem;">
        <div class="ji_chong_bank_list border_radius03 flex_col">
         <div class="ji_chong_bank_name f30 col_000 font_weight">${item.m_account}</div>
         <div class="ji_chong_bank_num col_000 font_weight">联系: <span>${item.m_phone}</span></div>
         <div class="flex_ce">
          <a href="#"
           class="f24 col_fff whatsApp jirou_chong_list5 border_radius05 text_center"
           style="width:2.5rem; margin-bottom:0; background:#2aa242; margin-right: 0.2rem;" data-type="1" data-num="${item.m_qq}">WhatsApp</a>
          <a href="#" class="f24 telegram col_fff jirou_chong_list5 border_radius05 text_center" style="width:2.5rem; margin-bottom:0;" data-type="2" data-num="${item.m_wx}">Telegram</a>
         </div>
        </div>
       </div>`
      })
      m_qq = data.user.m_qq;
      m_wx = data.user.m_wx;
      $(".details1").html(details1);
      $(".details2").html(details2);
      language();
      $(".whatsApp").click(function(){
       let num = $(this).attr("data-num");
       if(m_qq == ""){
        box_timer(language_type == 1 ? "您还没有WhatsApp账号哦!" : "You don't have a WhatsApp account yet");
        setTimeout(function(){
         window.location.href=`lianxi.html?wx=${m_qq}&&qq=${m_qq}`
        }, 1000)
       } else {
        $(this).attr("href", `https://api.whatsapp.com/send?phone=${num}`);
       }
      })
      $(".telegram").click(function(){
       let num = $(this).attr("data-num");
       if(m_wx == ""){
        box_timer(language_type == 1 ? "您还没有Telegram账号哦!" : "You don't have a Telegram account yet");
        setTimeout(function(){
         window.location.href=`lianxi.html?wx=${m_qq}&&qq=${m_qq}`
        }, 1000)
       } else {
        $(this).attr("href", `https://web.telegram.org/#/im?p=${num}`)
       }
      })
      

     }
    }
   })
   
   documentName()
  })
  
 </script>
</body>

</html>